package com.wuxiaofan.secondkill.utils;

import cn.hutool.crypto.SecureUtil;
import lombok.extern.slf4j.Slf4j;

/**
 * @author wuxiaofan
 * @date 2021/12/5 3:01 下午
 */
@Slf4j
public class Md5Util {

    public static String encode(String passwd,String salt){
        return SecureUtil.md5(SecureUtil.md5(passwd+salt)+salt);
    }


    public static void main(String[] args) {
        String encode_pwd = encode("111111","abc");
        log.info("encode_pwd:{}",encode_pwd);
    }
}
